import {
    get,
    post,
    postExcel
} from '../utils/request.js';


/* 企业评分管理 */
/* 指标管理 */
//指标列表
export const getScoringManagement = (params) => post('/qyxx/scoringManagement/getScoringManagementList',params, 'notQs');
//新增指标
export const addScoringManagement = (params) => post('/qyxx/scoringManagement/createScoringManagement',params, 'notQs');
//修改指标
export const updateScoringManagement = (params) => post('/qyxx/scoringManagement/updateScoringManagement',params, 'notQs');
//删除指标
export const deleteScoringManagement = (params) => get('/qyxx/scoringManagement/deleteScoringManagement',params);


/* 模型管理 */
//模型列表
export const getManageList = (params) => post('/qyxx/jrfkScoringRule/modelManageList',params, 'notQs');
//根据roleId获取信息
export const getRuleList = (params) => post('/qyxx/jrfkScoringRule/getRuleList',params, 'notQs');
//新增 
export const createRule = (params) => post('/qyxx/jrfkScoringRule/createRule',params, 'notQs');
//编辑
export const updateRule = (params) => post('/qyxx/jrfkScoringRule/updateRule',params, 'notQs');
//删除模型
export const deleteModel = (params) => post('/qyxx/jrfkScoringRule/deleteModel', params, 'notQs');
//计算模型
export const computeModel = (params) => get('/qyxx/jrfkScoringLevel/computeModel', params);
//获取指标名称及内容
export const getScoringManages = (params) => get('/qyxx/jrfkScoringRule/getScoringManages', params);
//设置
export const getScoringInstallList = (params) => get('/qyxx/scoringManagement/getScoringInstallList', params);
//设置保存
export const scoringInstall = (params) => post('/qyxx/scoringManagement/scoringInstall',params, 'notQs');



/* 评分查询 */
//查询列表
export const getScoringLevel = (params) => post('/qyxx/jrfkScoringLevel/getScoringLevelList',params, 'notQs');
//详情
export const getScoringDetail = (params) => get('/qyxx/jrfkScoringLevel/getScoringDetail', params);
//导出
export const exportScoringLevel = (params) => postExcel('/qyxx/jrfkScoringLevel/exportExcel',params, 'notQs');



/* 定义管理 */
//查询列表
export const getScoringScoreList = (params) => get('/qyxx/jrfkScoringScore/showScoringScoreList',params);
//新增或修改
export const editScoringScore = (params) => post('/qyxx/jrfkScoringScore/createScoringScore',params, 'notQs');
//删除
export const deletecoringScore = (params) => get('/qyxx/jrfkScoringScore/deletecoringScore',params);

/*  预警推送 */
/* 获取推送记录列表 */
export const getPushListByPage = (params) => post('/qyxx/jrfkFxyjPush/getPushListByPage', params, 'notQs');
/* 获取预警推送设置内容 */
export const getPushInstallList = (params) => get('/qyxx/jrfkFxyjPush/getPushInstallList', params);
/* 创建预警设置 */
export const createPushInstall = (params) => post('/qyxx/jrfkFxyjPush/createPushInstall', params, 'notQs');
/* 编辑预警设置 */
export const updatePushInstall = (params) => post('/qyxx/jrfkFxyjPush/updatePushInstall', params, 'notQs');
/* 获取预警设置详情 */
export const getPushInstallDetail = (params) => get('/qyxx/jrfkFxyjPush/getPushInstallDetail', params);
/* 分页获取设置列表 */
export const getPushInstallListByPage = (params) => post('/qyxx/jrfkFxyjPush/getPushInstallListByPage', params, 'notQs');
/* 删除预警推送设置 */
export const deleteInstallDetail = (params) => get('/qyxx/jrfkFxyjPush/deleteInstallDetail', params);

/*  额度查询 */
/* 获取额度信息列表 */
export const getInfoByList = (params) => post('/qyxx/jrfkQysyyged/getInfoByList', params, 'notQs');
/* 获取额度详情 */
export const getDetail = (params) => get('/qyxx/jrfkQysyyged/getDetail', params);

/*  融资申请 */
/* 获取融资申请列表 */
export const wxrzQuery = (params) => post('/qyxx/wxrz/wxrzQuery', params, 'notQs');
/* 企业分析 */
export const qyfx = (params) => get('/qyxx/wxrz/qyfx', params);